
using Infrastructure.Extensions;
using ZR.Model.Enums;

namespace ZR.Model.BaseFrame.Entity
{
    /// <summary>
    /// 操作日志
    /// </summary>
    public class OperLogEntityBase
    {
        /// <summary>
        /// 操作id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long OperId { get; set; }

        /// <summary>
        /// 操作模块
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public int? BusinessType { get; set; }

        /// <summary>
        /// 请求方法
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// 请求方式
        /// </summary>
        public string RequestMethod { get; set; }

        /// <summary>
        /// 操作类别
        /// </summary>
        public int? OperatorType { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        public string OperName { get; set; }

        /// <summary>
        /// 请求url
        /// </summary>
        public string OperUrl { get; set; }

        /// <summary>
        /// 操作地址
        /// </summary>
        public string OperIp { get; set; }

        /// <summary>
        /// 操作地点
        /// </summary>
        public string OperLocation { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public string OperParam { get; set; }

        /// <summary>
        /// 返回参数
        /// </summary>
        public string JsonResult { get; set; }

        /// <summary>
        /// 操作状态
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMsg { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OperTime { get; set; }

        /// <summary>
        /// 操作用时
        /// </summary>
        public long? Elapsed { get; set; }

        /// <summary>
        /// deptName
        /// </summary>
        public string DeptName { get; set; }

    }
}